Prelim 2 topics
Topics/ideas
- 2-dimensional array (matrix)
- 3-dimensional array (e.g. color image data)
- Computing in type uint8
- Array (2-d, 3-d) algorithms/patterns: full array traverse, partial array traverse (e.g., rectangular subarray, triangular subarray)
- Characters and char arrays
- Linear search
- Cell array
- Vectorized code
- File input/output
- good programming style (store important variables, use meaningful variable names, semicolons at the end of variable assignment lines, ...)
- Will this exam be cumulative? Each question on prelim 2 will focus on the topics listed above, but you typically still need loops, conditionals,
functions, comparison operators, functions, and other topics from prelim 1 to complete problems in prelim 2.
So yes and no. There will be no linear interpolation on prelim 2 though.
Students are responsible for all material covered in lecture, discussion,
exercises, projects, and the assigned reading:
- Lecture: up to and including Lecture 20. Not that object oriented programming will not be included in prelim 2.
- Exercises: up to and including Exercise 11
- Projects: Projects 1, 2, 3, 4, and 5
- Assigned reading: See “Lecture materials”, up to and including Lecture 20
Examples on how to use selected MATLAB predefined (built-in) functions will be given on the exam. Do not use any built-in functions that have not been discussed in lecture, discussion, homework, and assigned reading. Write scripts and functions as specified in each exam question; specifically, write functions and subfunctions only if they are requested.
Matlab commands that students may not use:
switch
break
continue
return